<template>
	<view>
		<view class="smart-container">1.容器</view>
		<view class="smart-panel-title" @click="goDetailPage('view')"><text>view视图</text></view>
		<view class="smart-container"><text>2.基础内容</text></view>
		<view class="smart-panel-title"><text>text文本编辑</text></view>
		<view class="smart-panel-title"><text>icon图标</text></view>
		<view class="smart-container"><text>3.表单组件</text></view>
		<view class="smart-panel-title"><text>button按钮</text></view>
		<view class="smart-panel-title"><text>checkbox多选框</text></view>
		<view class="smart-panel-title"><text>label标签组件</text></view>
		<view class="smart-panel-title"><text>input输入框</text></view>
		<view class="smart-panel-title"><text>textarea多行文本输入框</text></view>
		<view class="smart-panel-title"><text>form表单</text></view>
		<navigator url="/pages/components/navigation/navigation">
		<view class="smart-container"><text>4.导航组件</text></view>
		</navigator>
		<view class="smart-panel-title"><text>navigator</text></view>
		<navigator url="/pages/News Interface/News Interface/News Interface">
		<view class="smart-container">5.新闻界面</view>
		</navigator>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goDetailPage(e){
				if(typeof e === 'string') {
					uni.navigateTo({
						url:'/pages/components/' + e +'/' + e
					});
				} else {
					uni.navigateTo({
						url: e.url
					});
				}
			}
		}
	}
</script>

<style>

</style>
